package com.aspose.cells;

class zls extends zlq implements zagl {
   public zls(zaay var1) {
      super(var1);
   }

   public zagi a(zaay var1) {
      return new zls(var1 == null ? this.a : var1);
   }

   public boolean a(zagu var1) {
      var1 = var1.e(this.a);
      if (var1.b() == 0) {
         this.c = 0;
         this.e = var1;
         return true;
      } else {
         if (var1.b() == 3) {
            if (((zyy)var1).m()) {
               this.b = false;
            } else {
               this.b = true;
               this.d = ((zyy)var1).k();
            }
         } else {
            this.b = false;
         }

         return false;
      }
   }

   public boolean b(zagu var1) {
      var1 = var1.e(this.a);
      if (var1.b() == 0) {
         this.c = 1;
         this.e = var1;
         return true;
      } else {
         if (this.b) {
            if (var1.b() == 3) {
               this.d *= ((zyy)var1).k();
            } else {
               this.b = false;
            }
         }

         return false;
      }
   }

   public zagu d() {
      return this.b ? new zyy(this.d) : zyy.a;
   }

   public zagu b(boolean var1) {
      return this.b ? new zyy(this.d) : zyy.a;
   }
}
